package cst.a315sk.fragmenttest315sk.fragment;


import android.content.Context;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import android.widget.Toast;

import cst.a315sk.fragmenttest315sk.R;

/**
 * A simple {@link Fragment} subclass.
 */
public class AddressFragment extends Fragment {
    private View view;
    private Context context;
    private  TextView tvinfo;


    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        context=getActivity();
        view=inflater.inflate(R.layout.afragment,container,false);
        tvinfo=(TextView)view.findViewById(R.id.wtextView);
        tvinfo.setText("微信");
        Toast.makeText(context, "加载微信", Toast.LENGTH_SHORT).show();
        return view;
    }

}
